package com.baijiaoxi.common.model.base.service.interceptor;

import com.baijiaoxi.common.model.base.model.CoreModel;

public interface DeleteInterceptor<E extends CoreModel> {


    /**
     * 删除前的操作
     */
    default void beforeDel(E entity) {
    }

    /**
     * 删除后的操作
     */
    default void afterDel(E entity) {

    }

    default boolean isInterceptDelBatchAsSingle() {
        return false;
    }


}
